LOCAL_PATH := $(call my-dir)/../..
include $(CLEAR_VARS)
LOCAL_MODULE := lua

LOCAL_SRC_FILES := \
	$(subst $(LOCAL_PATH)/,, \
	$(wildcard $(LOCAL_PATH)/src/*.c) \
	$(wildcard $(LOCAL_PATH)/src/*.cpp))

LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES

ifeq ($(NDK_DEBUG),1)
	#LOCAL_CFLAGS += -D_DEBUG -g
else
	#LOCAL_CFLAGS += -DNDEBUG -O3 -fstrict-aliasing -fprefetch-loop-arrays
endif

#LOCAL_STATIC_LIBRARIES += SDL2

include $(BUILD_STATIC_LIBRARY)